Skip to content

WIP OfflinePlugin#860

Closed
quixotically wants to merge 1 commit intopopcodeorg:masterfrom
quixotically:OfflinePlugin
Closed

WIP OfflinePlugin#860
quixotically wants to merge 1 commit intopopcodeorg:masterfrom
quixotically:OfflinePlugin

Conversation

@quixotically
Copy link
Copy Markdown
Collaborator

No errors in online mode, but does not seem to work offline on localhost

@outoftime
Copy link
Copy Markdown
Contributor

outoftime commented Jun 7, 2017

@quixotically YO GUESS WHAT

I just checked this out and ran it locally through an nginx server that does some kind of DNS sorcery and…

it totally works!!

I am still curious as to why it doesn’t work on localhost:3000 (it doesn’t for me either) but this is a very exciting development…!

Seems like at least for the purposes of dev you could probably just throw something in /etc/hosts?

@outoftime
Copy link
Copy Markdown
Contributor

@quixotically so one thing I noticed playing around with this more is that the service worker is scoped to /compiled, because that’s where sw.js ends up. This is an artifact of the fact that static/ contains some files that are checked in to version control (e.g. static/index.html), while compiled files go into static/compiled. This isn’t a great structure and I’m considering just porting the build chain over to Blendid which is a good framework and also doesn’t have this problem.

@outoftime outoftime mentioned this pull request Jul 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants